import request from '@/utils/request'

export function list(params) {
  return request({
    url: '/admin/Module/list',
    method: 'get',
    params: params
  })
}

export function info(params) {
  return request({
    url: '/admin/Module/info',
    method: 'get',
    params: params
  })
}

export function add(data) {
  return request({
    url: '/admin/Module/add',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/admin/Module/edit',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/admin/Module/del',
    method: 'post',
    data
  })
}